Fully Qualified Name: | Laminas\Filter\Null |
Extends: | ToNull |
Stub class for backwards compatibility.
Since PHP 7 adds "null" as a reserved keyword, we can no longer have a class named that and retain PHP 7 compatibility. The original class has been renamed to "ToNull", and this class is now an extension of it. It raises an E_USER_DEPRECATED to warn users to migrate.
Name | Description | Defined By |
---|---|---|
__construct() | {@inheritdoc} | Null |
__invoke() | Invoke filter as a command | AbstractFilter |
filter() | Defined by Laminas\Filter\FilterInterface | ToNull |
getOptions() | Retrieve options representing object state | AbstractFilter |
getType() | Returns defined boolean types | ToNull |
hasPcreUnicodeSupport() | AbstractFilter | |
setOptions() | AbstractFilter | |
setType() | Set boolean types | ToNull |
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$typeOrOptions |
Returns:
Invoke filter as a command
Proxies to {@link filter()}
Parameter Name | Type | Description |
---|---|---|
$value | mixed |
Returns: mixed
Defined by Laminas\Filter\FilterInterface
Returns null representation of $value, if value is empty and matches types that should be considered null.
Parameter Name | Type | Description |
---|---|---|
$value | null|array|bool|float|int|string |
Returns: null|mixed
Retrieve options representing object state
Returns: array
Returns defined boolean types
Returns: int
Returns: bool
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: self
Set boolean types
Parameter Name | Type | Description |
---|---|---|
$type | int|string|array |
Returns: self